﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsuarioConsult.aspx.cs" Inherits="NewTierra.Pages.Usuarios.UsuarioConsult" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link href="../../Styles/jquery-ui.css" rel="stylesheet" />

    <script src="../../Scripts/jquery-1.11.0.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.10.0.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="../../Scripts/bootstrap.min.js" type="text/javascript"></script>

    <!-- Bootstrap Core CSS -->
    <%--<script src="../../Scripts/bootstrap-select.js" type="text/javascript"></script>--%>

    <link href="../../Styles/bootstrap.min.css" rel="stylesheet" />
    <%--<link href="../../Styles/bootstrap-select.css" rel="stylesheet" />--%>
    <link href="../../font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" />

    <title></title>

    <script type="text/javascript">

        $('#myModal').modal(options)
        $('#modalEditar').modal(options);


        function jScript() {

            //$('.selectpicker').selectpicker();
            $('#txtFeriasInicio').datepicker({ dateFormat: 'dd/mm/yy' });
            $('#txtFeriasFim').datepicker({ dateFormat: 'dd/mm/yy' });
            $('#txtFeriasInicioEdit').datepicker({ dateFormat: 'dd/mm/yy' });
            $('#txtFeriasFimEdit').datepicker({ dateFormat: 'dd/mm/yy' });


            //$("#btnSalvarEdit").click(function () {                
            //    var HorarioInicio = $('#txtHorarioInicioEdit').val();
            //    if (HorarioInicio == "") {                    
            //        $("#lblMsgErrEdit").val("Preencha o campo HORÁRIO INICIAL antes de prosseguir!");
            //    }
            //});

        }

        function showAutoCloseMessage(MsgsExc) {
            showNotification({
                message: MsgsExc,
                autoClose: true,
                type: "success",
                duration: 3
            });
        }

    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
          <div class="container" style="margin-top: 4px;">
            <asp:LinkButton ID="lnkVoltaMenu"
                                    runat="server"
                                    CssClass="btn btn-primary"
                                    OnClick="btnVoltarMenu_Click" ToolTip="Menu">
                                    <i class="fa fa-home fa-2x"></i>
                                </asp:LinkButton>
          </div>
        </nav>

        <br />
        <br />

        <div class="container">

            <div class="page-header">
                <h3>Usuários</h3>
            </div>

            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <Triggers>
                    <asp:PostBackTrigger ControlID="btnSalvarEdit" />
                    <asp:PostBackTrigger ControlID="btnSalvarUsuario" />
                </Triggers>
                <ContentTemplate>
                    <script type="text/javascript">
                        Sys.Application.add_load(jScript);
                    </script>

                    <div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                    <h4 class="modal-title" id="myModalLabel">
                                        <asp:Label ID="lblTituloModal" runat="server" Text="Cadastrar Usuário" />
                                    </h4>
                                </div>
                                <div class="modal-body">
                                    <div class="row">
                                        <div class="col-md-8">
                                            <strong>
                                                <asp:Label ID="lblNomeUsuarioTXT" runat="server" Text="Nome:" /></strong>
                                            <asp:TextBox ID="txtNomeUsuario" runat="server" MaxLength="50" CssClass="form-control" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                                                ControlToValidate="txtNomeUsuario" ErrorMessage="Usuário obrigatório."
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>

                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-8">
                                            <strong>
                                                <asp:Label ID="lblEmailUsuarioTXT" runat="server" Text="Email:" /></strong>
                                            <asp:TextBox ID="txtEmailUsuario" runat="server" MaxLength="50" CssClass="form-control" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                                                ControlToValidate="txtEmailUsuario" ErrorMessage="Email obrigatório."
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server"
                                                ControlToValidate="txtEmailUsuario" ErrorMessage="Email inválido."
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RegularExpressionValidator>

                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4">
                                            <strong>
                                                <asp:Label ID="lblStatusUsuarioTXT" runat="server" Text="Status:"></asp:Label>
                                            </strong>
                                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="form-control">
                                                <asp:ListItem Value="true" Selected="True" Text="Ativo" />
                                                <asp:ListItem Value="false" Text="Inativo" />
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-4">
                                            <strong>
                                                <asp:Label runat="server" ID="lblCliente" Text="Cliente: "></asp:Label>
                                            </strong>
                                            <asp:DropDownList runat="server" ID="ddlCliente" CssClass="form-control"></asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4">
                                            <strong>
                                                <asp:Label ID="lblPerfilUsuarioTXT" runat="server" Text="Perfil:"></asp:Label></strong>
                                            <br />
                                            <asp:DropDownList ID="ddlPerfilUsuario" runat="server" CssClass="form-control">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
                                                ControlToValidate="ddlPerfilUsuario" ErrorMessage="Favor selecione um perfil."
                                                ValidationGroup="Salvaruser" Font-Bold="True" Font-Size="9px"
                                                ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                                        </div>

                                        <div class="col-md-2">
                                            <strong>
                                                <asp:Label ID="lblHorarioInicioTXT" runat="server" Text="Horário inicial:"></asp:Label></strong>
                                            <br />
                                            <asp:TextBox ID="txtHorarioInicio" runat="server" placeholder="Ex:8" CssClass="form-control" autocomplete="off" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtHorarioInicio" ErrorMessage="Horário inicial obrigatório." ValidationGroup="Salvaruser" Font-Bold="True" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server"
                                                ControlToValidate="txtHorarioInicio" ErrorMessage="Horário inválido."
                                                ValidationExpression="^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </div>

                                        <div class="col-md-2">
                                            <strong>
                                                <asp:Label ID="lblHorarioFimTXT" runat="server" Text="Horário final:"></asp:Label>
                                            </strong>
                                            <br />
                                            <asp:TextBox ID="txtHorarioFim" runat="server" placeholder="Ex:18" CssClass="form-control" autocomplete="off" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtHorarioFim" ErrorMessage="Horário final obrigatório." ValidationGroup="Salvaruser" Font-Bold="True" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server"
                                                ControlToValidate="txtHorarioFim" ErrorMessage="Horário inválido."
                                                ValidationExpression="^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-2">
                                            <strong>Senha
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtSenha" TextMode="Password" CssClass="form-control" autocomplete="off"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
                                                ControlToValidate="txtSenha" ErrorMessage="Senha obrigatória."
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="col-md-2">
                                            <strong>Repetir Senha
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtRepetirSenha" TextMode="Password" CssClass="form-control" autocomplete="off"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server"
                                                ControlToValidate="txtRepetirSenha" ErrorMessage="Favor repetir a senha."
                                                ValidationGroup="Salvaruser" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="As senhas não conferem."
                                                Font-Size="9px" ForeColor="Red" ValidationGroup="Salvaruser" ControlToCompare="txtSenha" ControlToValidate="txtRepetirSenha"></asp:CompareValidator>
                                        </div>
                                        <div class="col-md-2">
                                            <strong>Férias Início
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtFeriasInicio" CssClass="form-control" ClientIDMode="Static" autocomplete="off"></asp:TextBox>
                                        </div>
                                        <div class="col-md-2">
                                            <strong>Férias Fim
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtFeriasFim" CssClass="form-control" ClientIDMode="Static" autocomplete="off"></asp:TextBox>
                                        </div>
                                    </div>
                                    <br />
                                    <div class="row">
                                        <div class="col-md-8">
                                            <strong>Dias da semana que terá acesso:
                                            </strong>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-8">
                                            <asp:CheckBox runat="server" ID="chkDomingo" Text="Domingo" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkSegunda" Text="Segunda" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkTerca" Text="Terça" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkQuarta" Text="Quarta" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkQuinta" Text="Quinta" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkSexta" Text="Sexta" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkSabado" Text="Sábado" />
                                        </div>
                                    </div>

                                </div>

                                <div class="modal-footer">
                                    <asp:Button runat="server" ID="btnSalvarUsuario" CssClass="btn btn-primary" Text="Inserir" OnClick="btnSalvarUsuario_Click" ValidationGroup="Salvaruser" />
                                    <asp:Button runat="server" ID="btnFechar" CssClass="btn btn-default" Text="Fechar" data-dismiss="modal" />
                                </div>

                            </div>
                        </div>
                    </div>

                    <asp:HiddenField runat="server" ID="hdfUsuario_ID" />

                    <div class="modal fade bs-example-modal-lg" id="modalEditar" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                    <h4 class="modal-title" id="H1">
                                        <asp:Label runat="server" Text="Editar Usuário" />
                                    </h4>
                                </div>
                                <div class="modal-body">
                                    <div class="row">
                                        <div class="col-md-8">
                                            <strong>
                                                <asp:Label ID="Label2" runat="server" Text="Nome:" /></strong>
                                            <asp:TextBox ID="txtNomeUsuarioEdit" runat="server" MaxLength="50" CssClass="form-control" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                ControlToValidate="txtNomeUsuarioEdit" ErrorMessage="Usuário obrigatório."
                                                ValidationGroup="Editaruser" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-8">
                                            <strong>
                                                <asp:Label ID="Label3" runat="server" Text="Email:" /></strong>
                                            <asp:TextBox ID="txtEmailUsuarioEdit" runat="server" MaxLength="50" CssClass="form-control" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                                ControlToValidate="txtEmailUsuarioEdit" ErrorMessage="Email obrigatório."
                                                ValidationGroup="Editaruser" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                                ControlToValidate="txtEmailUsuarioEdit" ErrorMessage="Email inválido."
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                ValidationGroup="Editaruser" Font-Size="9px" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4">
                                            <strong>
                                                <asp:Label ID="Label4" runat="server" Text="Status:"></asp:Label>
                                            </strong>
                                            <asp:DropDownList ID="ddlStatusEdit" runat="server" CssClass="form-control">
                                                <asp:ListItem Value="true" Selected="True" Text="Ativo" />
                                                <asp:ListItem Value="false" Text="Inativo" />
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-4">
                                            <strong>
                                                <asp:Label ID="Label1" runat="server" Text="Cliente:"></asp:Label>
                                            </strong>
                                            <asp:DropDownList ID="ddlClienteEdit" runat="server" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4">
                                            <strong>
                                                <asp:Label ID="Label5" runat="server" Text="Perfil:"></asp:Label></strong>
                                            <br />
                                            <asp:DropDownList ID="ddlPerfilUsuarioEdit" runat="server" CssClass="form-control">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
                                                ControlToValidate="ddlPerfilUsuarioEdit" ErrorMessage="Favor selecione um perfil."
                                                ValidationGroup="EditarUser" Font-Bold="True" Font-Size="9px"
                                                ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                                        </div>

                                        <div class="col-md-2">
                                            <strong>
                                                <asp:Label ID="Label6" runat="server" Text="Horário inicial:"></asp:Label></strong>
                                            <br />
                                            <asp:TextBox ID="txtHorarioInicioEdit" runat="server" placeholder="Ex:8" CssClass="form-control" autocomplete="off" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtHorarioInicioEdit" ErrorMessage="Horário inicial obrigatório." ValidationGroup="EditarUser" Font-Bold="True" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
                                                ControlToValidate="txtHorarioInicioEdit" ErrorMessage="Horário inválido."
                                                ValidationExpression="^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"
                                                ValidationGroup="Editaruser" Font-Size="9px" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </div>

                                        <div class="col-md-2">
                                            <strong>
                                                <asp:Label ID="Label7" runat="server" Text="Horário final:"></asp:Label>
                                            </strong>
                                            <br />
                                            <asp:TextBox ID="txtHorarioFimEdit" runat="server" placeholder="Ex:18" CssClass="form-control" autocomplete="off" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHorarioFimEdit" ErrorMessage="Horário final obrigatório." ValidationGroup="EditarUser" Font-Bold="True" Font-Size="9px" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                                                ControlToValidate="txtHorarioFimEdit" ErrorMessage="Horário inválido."
                                                ValidationExpression="^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"
                                                ValidationGroup="Editaruser" Font-Size="9px" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-2">
                                            <strong>Senha
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtSenhaEdit" TextMode="Password" CssClass="form-control" autocomplete="off"></asp:TextBox>
                                            <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="As senhas não conferem."
                                                Font-Size="9px" ForeColor="Red" ValidationGroup="Editaruser" ControlToCompare="txtSenhaEdit" ControlToValidate="txtRepetirSenhaEdit"></asp:CompareValidator>
                                        </div>
                                        <div class="col-md-2">
                                            <strong>Repetir Senha
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtRepetirSenhaEdit" TextMode="Password" CssClass="form-control" autocomplete="off"></asp:TextBox>
                                        </div>
                                        <div class="col-md-2">
                                            <strong>Férias Início
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtFeriasInicioEdit" CssClass="form-control" ClientIDMode="Static" autocomplete="off"></asp:TextBox>
                                        </div>
                                        <div class="col-md-2">
                                            <strong>Férias Fim
                                            </strong>
                                            <br />
                                            <asp:TextBox runat="server" ID="txtFeriasFimEdit" CssClass="form-control" ClientIDMode="Static" autocomplete="off"></asp:TextBox>
                                        </div>
                                    </div>
                                    <br />
                                    <div class="row">
                                        <div class="col-md-8">
                                            <strong>Dias da semana que terá acesso:
                                            </strong>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-8">
                                            <asp:CheckBox runat="server" ID="chkDomEdit" Text="Domingo" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkSegEdit" Text="Segunda" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkTerEdit" Text="Terça" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkQuaEdit" Text="Quarta" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkQuiEdit" Text="Quinta" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkSexEdit" Text="Sexta" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:CheckBox runat="server" ID="chkSabEdit" Text="Sábado" />
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <asp:Button runat="server" ID="btnSalvarEdit" CssClass="btn btn-primary" Text="Salvar" OnClick="btnSalvarEdit_Click" ValidationGroup="EditarUser" />
                                    <asp:Button runat="server" ID="btnFecharEdit" CssClass="btn btn-default" Text="Fechar" data-dismiss="modal" OnClick="btnFecharEdit_Click" />
                                    <asp:Label runat="server" ID="lblMsgErrEdit" Text="" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                Cadastro de usuários                      

                                <asp:LinkButton ID="btnAddUsuario"
                                    runat="server"
                                    CssClass="btn btn-success"
                                    OnClick="btnAddUsuario_Click">
                                    <i class="fa fa-plus-square"></i> Adicionar usuário
                                </asp:LinkButton>                                

                            </div>

                            <div class="panel-body">
                                <nav class="navbar navbar-default" style="padding: 8px;" role="navigation">
                                    <div class="row">
                                        <div class="col-md-4">
                                            <asp:TextBox ID="txtprocurar" runat="server" class="form-control" placeholder="Nome do usuário" />
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Button ID="btnProcurar" runat="server" CssClass="btn btn-primary" Text="Procurar" OnClick="btnProcurar_Click" />
                                        </div>
                                    </div>
                                </nav>

                                <asp:GridView ID="gvUsuarios" runat="server" CssClass="table table-striped table-bordered table-hover" GridLines="None" CellSpacing="-1" AutoGenerateColumns="false">
                                    <Columns>
                                        <%--<asp:BoundField DataField="US_id" HeaderText="ID" SortExpression="US_id"></asp:BoundField>--%>

                                        <asp:BoundField DataField="US_nome" HeaderText="Nome"
                                            SortExpression="US_nome">
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>

                                        <asp:BoundField DataField="US_email" HeaderText="Email"
                                            SortExpression="US_email">
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Usuario_Perfil.Perfil_tipo" HeaderText="Perfil"
                                            SortExpression="Usuario_Perfil.Perfil_tipo">
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>

                                        <asp:TemplateField HeaderText="Editar">
                                            <ItemTemplate>

                                                <asp:LinkButton ID="btnEditar"
                                                    runat="server"
                                                    CssClass="btn btn-default"
                                                    CommandArgument='<%# Eval("US_id") %>'
                                                    OnCommand="EditarUser_Command">
                                        <i class="fa fa-pencil-square-o"></i>
                                                </asp:LinkButton>

                                                <asp:LinkButton ID="btnDeletar"
                                                    runat="server"
                                                    CommandArgument='<%# Eval("US_id") %>'
                                                    CssClass="btn btn-default"
                                                    OnCommand="DeletarUser_Command">
                                        <i class="fa fa-times"></i>
                                                </asp:LinkButton>

                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    </Columns>

                                </asp:GridView>



                            </div>

                        </div>
                    </div>

                </ContentTemplate>
            </asp:UpdatePanel>

        </div>

    </form>

</body>
</html>

